package com.hmall.mapper;

import com.hmall.model.MallOrderFufillmentParent;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface MallOrderFufillmentParentMapper extends MyMapper<MallOrderFufillmentParent> {

    List<MallOrderFufillmentParent> selectByOrderNo(@Param("orderNo") Long orderNo);

    int selectCountByTime(@Param("start") Date start, @Param("end") Date end, @Param("customerId") Integer customerId);

    List<MallOrderFufillmentParent> selectAllByTime(@Param("start") Date start, @Param("end") Date end, @Param("customerId") Integer customerId);

    List<Long> selectOrderNoByArgs(@Param("start") Date start, @Param("end") Date end, @Param("customerId") Integer customerId);

    List<MallOrderFufillmentParent> selectTimeOutList(@Param("customerId") Integer customerId, @Param("time") Date time);

    Integer selectByFufillmentNo(@Param("fufillmentNo") String fufillmentNo);

    List<MallOrderFufillmentParent> selectByCustomerId(@Param("customerId") Integer customerId);
}